# Part of Zombie Navigator
# Copyright © 2016  Zombie Navigator Developers

all: addon
.PHONY: all addon docs icon archive test check zopflipng npm update

addon: update
	exec ./tools/build.sh

addon-minified: update
	exec ./tools/build.sh --minify-js

docs:
	exec ./tools/build-docs.sh

icon:
	exec ./tools/build-icon.sh

archive:
	exec ./tools/save-archive.sh

test: check

check:
	exec ./tools/validate.sh

npm:
	@echo "NPM will access online repositories!!!"
	@echo "Interrupt within 5 seconds if you are not ready..."
	sleep 5
	@echo "Now invoking NPM!"
	exec npm update

update:
	exec ./tools/update-data.sh

zopflipng:
	@echo "Git will access online repositories!!!"
	@echo "Interrupt within 5 seconds if you are not ready..."
	sleep 5
	@echo "Now invoking Git!"
	mkdir -p .deps ; \
	cd .deps ; \
	git clone https://github.com/google/zopfli.git ; \
	cd zopfli ; \
	make zopflipng

# vim: ts=4 noet ai

